package com.gmail.skwong.speedplayer;

/**
 * Class to calculate tempos. Uses hard coded values for now. External libraries
 * I found are either too slow in performance, not accurate, or does not work
 * for mp3s.
 * 
 * @author Stephen
 * 
 */
public class TempoCalculator {

	// default constructor
	public TempoCalculator() {
	}

	public int getTempo(String pathToSong) {
		if (pathToSong.contains("Wedding")) {
			return 77;
		}
		if (pathToSong.contains("Far Away")) {
			return 92;
		}
		if (pathToSong.contains("Alive")) {
			return 128;
		}
		if (pathToSong.contains("Control Myself")) {
			return 110;
		}
		if (pathToSong.contains("Spaceman")) {
			return 128;
		}
		if (pathToSong.contains("Worry Child")) {
			return 100;
		}
		return 100;
	}
}
